<?php 

class Model_class extends CI_Model {
    
    function __construct() {
        parent::__construct();
    }

    function getClasses() {
    	$collection = $this->mongo_db->db->selectCollection('menu');
        $classes = $collection->find(array(),array("class"=>1));
        return $classes;
    }

    function getMenu($strId) {
        $id = new MongoId($strId);
        $collection = $this->mongo_db->db->selectCollection('menu');
        $menu = $collection->findOne(array("_id" => $id));
        return $menu;    
    }

}

?>